<?php

/**
 * @package examples
 */

set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../library'));
include 'Zend/Loader.php';
Zend_Loader::registerAutoload();

header('Content-type: text/html; charset=utf-8');

// Déclaration du client SOAP
$options = array();
$options['location'] = 'http://html.zfbook/webservice/soap';
$options['uri']      = 'http://reservation';
$client  = new Zend_Soap_Client(null, $options);

echo '<div style="float: right">';
var_dump($client->getRooms());
var_dump($client->getDetail(12));
echo '</div>';
var_dump($client->getReservations('2008-08-18 13:10:00', '2008-09-18 10:00:00'));
